<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>线程管理</title>
</head>
<body>
	<h2>后台线程管理</h2>
	<%
		String state = (String) request.getAttribute("state");
		if ("1".equals(state)) {
	%>
	当前发邮件线程已启动.
	<a href="/ExecutorServlet?operator=stop">停止</a>
	<%
		}
	%>

	<%
		if ("0".equals(state)) {
	%>
	当前发邮件线程未启动.
	<a href="/ExecutorServlet?operator=start">启动</a>
	<%
		}
	%>
	<br/>
	<br/>
	<!--     搜索邮件线程       -->
	<%
		String searchstate = (String) request.getAttribute("searchstate");
		if ("1".equals(searchstate)) {
	%>
	当前搜索邮件线程已启动.
	<a href="/ExecutorServlet?searchoperator=searchstop">停止</a>
	<%
		}
	%>

	<%
		if ("0".equals(searchstate)) {
	%>
	当前搜索邮件线程未启动.
	<a href="/ExecutorServlet?searchoperator=searchstart">启动</a>
	<%
		}
	%>

</body>
</html>